package cn.chenmixuexi;
import cn.chenmixuexi.server.service.HelloService;
import cn.chenmixuexi.spring.Context;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

@Slf4j
public class RpcClient {



    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = Context.getContext();
        for (String beanDefinitionName : context.getBeanDefinitionNames()) {
            System.out.println(beanDefinitionName);
        }

        HelloService bean = (HelloService) context.getBean("HelloService");
//        bean.sayHello("hello");
    }
}
